import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import { Tabbar, TabbarItem, Swipe, SwipeItem, Icon, Grid, GridItem, DropdownMenu, DropdownItem, Dialog } from 'vant'
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Dialog)
axios.defaults.baseURL = 'http://121.199.51.160:8080/'

Vue.prototype.$http = axios

Vue.config.productionTip = false

const app = new Vue({

  render: (h) => h(App),
  router
}).$mount('#app')
console.log(app.$http)
